<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>코드수정</title>
<link href="/css/layout.css" type="text/css" rel="stylesheet" />
<script src="/js/mng.js"></script>
<script type="text/javascript">
	$(document).ready(function() {

		jQuery.validator.setDefaults({
			onkeyup:false,
			onclick:false,
			onfocusout:false,
			showErrors:function(errorMap, errorList){
				$(errorList[0].element).focus();
				alert(errorList[0].message);
			}
		});
		$("#frm").validate({
			rules: {
				code_name:			{required: true}
			},
			messages: {
				code_name:			{required: "<?echo $code_type_name?> 미입력"}
			},
			success: function(label) {
				$('#sbmtBtn').remove();
			}
		});


		
	});
</script>
</head>

<?
		$code_seq = $param->getString("chkbxNo");
		
		$row =& GetCodeInfo($code_seq);
		
		if ( $row == null )
			jserror("$code_seq정보가 없습니다..");
		else
		if ( $row != null  )
		{
			$code_seq	         = $row->getString('code_seq');
			$code_name			 = $row->getString('code_name');
			$code_type			 = $row->getString('code_type');
			$code_code1			 = $row->getString('code_code1');
			$code_code2			 = $row->getString('code_code2');
			$code_display		 = $row->getString('code_type');
?>
<body class="pop">
<p class="codetitle"><span>코드수정</span></p>
    <div class="memoplace">
<form name=frm id=frm method="POST" action="<?echo $PHP_SELF?>">
        <table cellpadding="0" cellspacing="1" border="0" class="bbsTable">
          <colgroup>
          <col width="120px" />
          <col width="*" />
          </colgroup>
          <tr>
            <th><?echo $code_type_name?></th>
            <td><input type="text" id="code_name" name="code_name" value="<?echo $code_name?>" class="boxinput w97p"/></td>
          </tr>
        </table>
        <div class="BtnList">
            	<ul>
                	<li><input type="submit" id="sbmtBtn" name="sbmtBtn" class="btn_submit" value=""/></li>
					<li><input type="button" class="btn_cancel" onClick="MNG.fncRtnfunc('rst','<?echo $flag ?>');" title="취소"/></li>
					<input type="hidden" name="mode" id="mode" value="u"/>
					<input type="hidden" name="code_seq" id="code_seq" value="<?echo $code_seq?>"/>
					<input type="hidden" name="code_code1" id="code_code1" value="<?echo $code_code1?>"/>
					<input type="hidden" name="code_code2" id="code_code2" value="<?echo $code_code2?>"/>
					<input type="hidden" name="code_display" id="code_display" value="<?echo $code_display?>"/>
                </ul>
            </div>
</form>
	</div>
</body>
</html>
<? 
		}
?>